// pages/foodEnergy/foodEnergy.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    foodEnergyData:[
      // {
      //   img:"../../image/foodGiImg/gi-icon1.png",
      //   title:"低GI食物",
      // },
      {
        img:"../../image/foodGiImg/gi-icon2.png",
        title:"谷物及制品",
      },
      {
        img:"../../image/foodGiImg/gi-icon3.png",
        title:"薯类淀粉制品",
      },
      {
        img:"../../image/foodGiImg/gi-icon4.png",
        title:"豆类及制品",
      },
      {
        img:"../../image/foodGiImg/gi-icon5.png",
        title:"蔬菜类",
      },
      {
        img:"../../image/foodGiImg/gi-icon6.png",
        title:"水果类",
      },
      {
        img:"../../image/foodGiImg/gi-icon7.png",
        title:"种子类",
      },
      {
        img:"../../image/foodGiImg/gi-icon8.png",
        title:"乳类及制品",
      },
      {
        img:"../../image/foodGiImg/gi-icon9.png",
        title:"糖类",
      },
      {
        img:"../../image/foodGiImg/gi-icon10.png",
        title:"速食食品类",
      },
      {
        img:"../../image/foodGiImg/gi-icon11.png",
        title:"饮料",
      },
      {
        img:"../../image/foodGiImg/gi-icon12.png",
        title:"其他类",
      },
    ],
    delShow:false,
    inputValue:"",
    rightData: [
      //"低GI食物",
      // [
      //   {name:"稻麸",value:"19"},
      //   {name:"大麦（整粒，煮）",value:"25"},
      //   {name:"面条（强化蛋白质，细，煮）",value:"27"},
      //   {name:"黑麦/（整粒，煮）",value:"34"},
      //   {name:"线面条（实心，细）",value:"35"},
      //   {name:"全麦面条",value:"37"},
      //   {name:"小麦（整粒煮）",value:"41"},
      //   {name:"燕麦饭（整粒）",value:"42"},
      //   {name:"黑米粥",value:"42.3"},
      //   {name:"通心面（管状，粗）",value:"45"},
      //   {name:"面条（小麦粉，硬，扁粗）",value:"46"},
      //   {name:"玉米饼",value:"46"},
      //   {name:"全麦意大利面",value:"48"},
      //   {name:"面条（硬质小麦粉，加鸡蛋，粗）",value:"49"},
      //   {name:"莜麦饭（整粒）",value:"49"},
      //   {name:"意大利面",value:"49"},
      //   {name:"黏米饭/含直链淀粉高，煮",value:"50"},
      //   {name:"玉米面粥",value:"50.9"},
      //   {name:"玉米糁粥",value:"51.8"},
      //   {name:"薄煎饼（美式）",value:"52"},
      //   {name:"米粉",value:"54"},
      //   {name:"荞麦",value:"54"},
      //   {name:"面条（硬质小麦粉，细）",value:"55"},
      //   {name:"面条（挂面，精制小麦粉）",value:"55"},
      //   {name:"燕麦麸",value:"55"},
      //   {name:"燕麦片粥",value:"55"},
      //   {name:"面条（硬质小麦粉，细煮）",value:"55"},
      //   {name:"黑米饭",value:"55"},
      //   {name:"玉米/甜，煮",value:"55"},
      //   {name:"乌冬面",value:"55"},
      //   {name:"马铃薯粉条",value:"13.6"},
      //   {name:"魔芋",value:"17"},
      //   {name:"粉丝汤/豌豆",value:"31.6"},
      //   {name:"藕粉",value:"32.6"},
      //   {name:"苕粉",value:"34.5"},
      //   {name:"芋头（蒸）",value:"48"},
      //   {name:"山药",value:"51"},
      //   {name:"甘薯（山芋）",value:"54"},
      //   {name:"黄豆罐头",value:"14"},
      //   {name:"蚕豆（五香）",value:"16.9"},
      //   {name:"黄豆（浸泡）",value:"18"},
      //   {name:"豆腐（冻）",value:"22.3"},
      //   {name:"豆腐干",value:"23.7"},
      //   {name:"芸豆",value:"24"},
      //   {name:"红扁豆（小）",value:"26"},
      //   {name:"四季豆",value:"27"},
      //   {name:"绿豆",value:"27.2"},
      //   {name:"绿扁豆（小）",value:"30"},
      //   {name:"利马豆（加5g蔗糖）",value:"30"},
      //   {name:"利马豆（棉豆）",value:"31"},
      //   {name:"利马豆（加10g蔗糖）",value:"31"},
      //   {name:"炖豆腐",value:"31.9"},
      //   {name:"利马豆（嫩，冷冻）",value:"32"},
      //   {name:"鹰嘴豆",value:"33"},
      //   {name:"绿豆挂面",value:"33.4"},
      //   {name:"四季豆（高压处理）",value:"34"},
      //   {name:"扁豆",value:"38"},
      //   {name:"青刀豆",value:"39"},
      //   {name:"咖喱鹰嘴豆（罐头）",value:"41"},
      //   {name:"鹰嘴豆罐头",value:"42"},
      //   {name:"豌豆",value:"42"},
      //   {name:"小扁豆汤（罐头）",value:"44"},
      //   {name:"青刀豆",value:"45"},
      //   {name:"黑马诺豆",value:"46"},
      //   {name:"黑豆汤",value:"46"},
      //   {name:"红扁豆（小，罐头）",value:"52"},
      //   {name:"四季豆罐头",value:"52"},
      //   {name:"芦笋",value:"15"},
      //   {name:"菜花",value:"15"},
      //   {name:"黄瓜",value:"15"},
      //   {name:"鲜青豆",value:"15"},
      //   {name:"生菜",value:"15"},
      //   {name:"西红柿",value:"15"},
      //   {name:"朝鲜笋",value:"15"},
      //   {name:"西蓝花",value:"15"},
      //   {name:"芹菜",value:"15"},
      //   {name:"茄子",value:"15"},
      //   {name:"莴笋",value:"15"},
      //   {name:"青椒",value:"15"},
      //   {name:"菠菜",value:"15"},
      //   {name:"樱桃",value:"22"},
      //   {name:"李子",value:"24"},
      //   {name:"柚",value:"25"},
      //   {name:"桃子",value:"28"},
      //   {name:"桃（罐头，含有果汁）",value:"30"},
      //   {name:"香蕉（生）",value:"30"},
      //   {name:"杏干",value:"31"},
      //   {name:"梨",value:"36"},
      //   {name:"苹果",value:"36"},
      //   {name:"草莓",value:"40"},
      //   {name:"枣",value:"42"},
      //   {name:"葡萄",value:"43"},
      //   {name:"橘子",value:"43"},
      //   {name:"橙子",value:"43"},
      //   {name:"草莓酱",value:"49"},
      //   {name:"猕猴桃",value:"52"},
      //   {name:"桃（罐头,含糖浓度低）",value:"52"},
      //   {name:"香蕉",value:"52"},
      //   {name:"芭蕉",value:"53"},
      //   {name:"芒果",value:"55"},
      //   {name:"花生",value:"14"},
      //   {name:"腰果",value:"25"},
      //   {name:"低脂奶粉",value:"11.9"},
      //   {name:"酸乳酪（低脂，加人工甜味剂）",value:"14"},
      //   {name:"牛奶（加人工甜味剂和巧克力）",value:"24"},
      //   {name:"降糖牛奶",value:"26"},
      //   {name:"全脂牛奶",value:"27"},
      //   {name:"牛奶",value:"27.6"},
      //   {name:"脱脂牛奶",value:"32"},
      //   {name:"酸乳酪（低脂）",value:"33"},
      //   {name:"牛奶（加糖和巧克力）",value:"34"},
      //   {name:"酸乳酪",value:"36"},
      //   {name:"老年奶粉",value:"40.9"},
      //   {name:"酸奶（水果）",value:"41"},
      //   {name:"克糖奶粉",value:"47.6"},
      //   {name:"酸奶（加糖）",value:"48"},
      //   {name:"果糖",value:"23"},
      //   {name:"乳糖",value:"46"},
      //   {name:"巧克力",value:"49"},
      //   {name:"面包（75-80%大麦粒）",value:"34"},
      //   {name:"牛奶香脆",value:"39"},
      //   {name:"全麦维（家乐氏）",value:"42"},
      //   {name:"面包（混合物）",value:"45"},
      //   {name:"大米（即食，煮1分钟）",value:"46"},
      //   {name:"面包（黑麦粒）",value:"46"},
      //   {name:"面包（小麦粉，含水果干）",value:"47"},
      //   {name:"面包（45-50%燕麦麸）",value:"47"},
      //   {name:"闲趣饼干",value:"47"},
      //   {name:"面包（80%燕麦粒）",value:"50"},
      //   {name:"面包（50-80%碎小麦粒）",value:"52"},
      //   {name:"荞麦方便面",value:"53.2"},
      //   {name:"爆玉米花",value:"55"},
      //   {name:"燕麦粗粉饼干",value:"55"},
      //   {name:"水蜜桃汁",value:"32.7"},
      //   {name:"可乐饮料",value:"40.3"},
      //   {name:"苹果汁",value:"41"},
      //   {name:"巴梨汁（罐头）",value:"44"},
      //   {name:"菠萝汁（不加糖）",value:"46"},
      //   {name:"柚子果汁（不加糖）",value:"48"},
      //   {name:"橙汁（纯果汁）",value:"50"},
      //   {name:"冰激凌（低脂）",value:"50"},
      //   {name:"猪肉炖粉条",value:"16.7"},
      //   {name:"三鲜馅饺子",value:"28"},
      //   {name:"米饭+鱼",value:"37"},
      //   {name:"西红柿汤",value:"38"},
      //   {name:"硬质小麦粉肉馅馄饨",value:"39"},
      //   {name:"包子/芹菜炒猪肉",value:"39.1"},
      //   {name:"牛奶蛋糊/牛奶+淀粉+糖",value:"43"},
      //   {name:"饼+鸡蛋炒木耳",value:"48.4"},
      //   {name:"馒头+芹菜炒鸡蛋",value:"48.6"},
      //   {name:"馒头+酱牛肉",value:"49.4"},
      // ],
      //"谷物及制品",
      [
        {name:"稻麸",value:"19"},
        {name:"大麦（整粒，煮）",value:"25"},
        {name:"面条（强化蛋白质，细，煮）",value:"27"},
        {name:"黑麦/（整粒，煮）",value:"34"},
        {name:"线面条（实心，细）",value:"35"},
        {name:"全麦面条",value:"37"},
        {name:"小麦（整粒煮）",value:"41"},
        {name:"燕麦饭（整粒）",value:"42"},
        {name:"黑米粥",value:"42.3"},
        {name:"通心面（管状，粗）",value:"45"},
        {name:"面条（小麦粉，硬，扁粗）",value:"46"},
        {name:"玉米饼",value:"46"},
        {name:"全麦意大利面",value:"48"},
        {name:"面条（硬质小麦粉，加鸡蛋，粗）",value:"49"},
        {name:"莜麦饭（整粒）",value:"49"},
        {name:"意大利面",value:"49"},
        {name:"黏米饭/含直链淀粉高，煮",value:"50"},
        {name:"玉米面粥",value:"50.9"},
        {name:"玉米糁粥",value:"51.8"},
        {name:"薄煎饼（美式）",value:"52"},
        {name:"米粉",value:"54"},
        {name:"荞麦",value:"54"},
        {name:"面条（硬质小麦粉，细）",value:"55"},
        {name:"面条（挂面，精制小麦粉）",value:"55"},
        {name:"燕麦麸",value:"55"},
        {name:"燕麦片粥",value:"55"},
        {name:"面条（硬质小麦粉，细煮）",value:"55"},
        {name:"黑米饭",value:"55"},
        {name:"玉米/甜，煮",value:"55"},
        {name:"乌冬面",value:"55"},
        {name:"面条（挂面，全麦粉）",value:"57"},
        {name:"荞麦面条",value:"59.3"},
        {name:"小米粥",value:"61.5"},
        {name:"印度卷饼",value:"62"},
        {name:"大米糯米粥",value:"65"},
        {name:"粗麦粉（蒸）",value:"65"},
        {name:"大麦粉",value:"66"},
        {name:"荞麦面馒头",value:"66.7"},
        {name:"玉米面/粗粉，煮",value:"68"},
        {name:"大米粥",value:"69"},
        {name:"饼干（小麦片）",value:"69"},
        {name:"面包（未发酵小麦）",value:"70"},
        {name:"小米（煮）",value:"71"},
        {name:"大米饭（籼米，糙米）",value:"71"},
        {name:"粟子饭（整粒）",value:"72"},
        {name:"玉米片（高纤维，市售）",value:"74"},
        {name:"全麦/全麦面包",value:"74"},
        {name:"油条",value:"74.9"},
        {name:"白面包",value:"75"},
        {name:"大米饭（粳米，糙米）",value:"78"},
        {name:"玉米片（市售）",value:"78.5"},
        {name:"即食燕麦粥",value:"79"},
        {name:"烙饼",value:"79.6"},
        {name:"面条（小麦粉）",value:"81.6"},
        {name:"米饼",value:"82"},
        {name:"馒头（全麦粉）",value:"82"},
        {name:"大米饭（籼米，精米）",value:"82"},
        {name:"馒头（精制小麦粉）",value:"85"},
        {name:"速冻米饭",value:"87"},
        {name:"糯米饭",value:"87"},
        {name:"黏米饭/含直链淀粉低，煮",value:"88"},
        {name:"馒头（富强粉）",value:"88.1"},
        {name:"蒸肠粉",value:"89"},
        {name:"大米饭（粳米，精米）",value:"90"},
      ],
      //"薯类/淀粉及制品",
      [
        {name:"马铃薯粉条",value:"13.6"},
        {name:"魔芋",value:"17"},
        {name:"粉丝汤/豌豆",value:"31.6"},
        {name:"藕粉",value:"32.6"},
        {name:"苕粉",value:"34.5"},
        {name:"芋头（蒸）",value:"48"},
        {name:"山药",value:"51"},
        {name:"甘薯（山芋）",value:"54"},
        {name:"马铃薯（烤）",value:"60"},
        {name:"马铃薯",value:"62"},
        {name:"马铃薯（蒸）",value:"65"},
        {name:"马铃薯（煮）",value:"66.4"},
        {name:"马铃薯泥",value:"73"},
        {name:"红薯（煮）",value:"76.7"},
        {name:"马铃薯（用微波炉烤）",value:"82"},
        {name:"马铃薯（烧烤，无油脂）",value:"85"},
      ],
      //"豆类及制品",
      [
        {name:"黄豆罐头",value:"14"},
        {name:"蚕豆（五香）",value:"16.9"},
        {name:"黄豆（浸泡）",value:"18"},
        {name:"豆腐（冻）",value:"22.3"},
        {name:"豆腐干",value:"23.7"},
        {name:"芸豆",value:"24"},
        {name:"红扁豆（小）",value:"26"},
        {name:"四季豆",value:"27"},
        {name:"绿豆",value:"27.2"},
        {name:"绿扁豆（小）",value:"30"},
        {name:"利马豆（加5g蔗糖）",value:"30"},
        {name:"利马豆（棉豆）",value:"31"},
        {name:"利马豆（加10g蔗糖）",value:"31"},
        {name:"炖豆腐",value:"31.9"},
        {name:"利马豆（嫩，冷冻）",value:"32"},
        {name:"鹰嘴豆",value:"33"},
        {name:"绿豆挂面",value:"33.4"},
        {name:"四季豆（高压处理）",value:"34"},
        {name:"扁豆",value:"38"},
        {name:"青刀豆",value:"39"},
        {name:"咖喱鹰嘴豆（罐头）",value:"41"},
        {name:"鹰嘴豆罐头",value:"42"},
        {name:"豌豆",value:"42"},
        {name:"小扁豆汤（罐头）",value:"44"},
        {name:"青刀豆",value:"45"},
        {name:"黑马诺豆",value:"46"},
        {name:"黑豆汤",value:"46"},
        {name:"红扁豆（小，罐头）",value:"52"},
        {name:"四季豆罐头",value:"52"},
        {name:"黄豆挂面（有面粉）",value:"66.6"},
      ],
      //"蔬菜类",
      [
        {name:"芦笋",value:"15"},
        {name:"菜花",value:"15"},
        {name:"黄瓜",value:"15"},
        {name:"鲜青豆",value:"15"},
        {name:"生菜",value:"15"},
        {name:"西红柿",value:"15"},
        {name:"朝鲜笋",value:"15"},
        {name:"西蓝花",value:"15"},
        {name:"芹菜",value:"15"},
        {name:"茄子",value:"15"},
        {name:"莴笋",value:"15"},
        {name:"青椒",value:"15"},
        {name:"菠菜",value:"15"},
        {name:"甜菜",value:"64"},
        {name:"胡萝卜(全笋）",value:"71"},
        {name:"南瓜",value:"75"},
      ],
      //"水果类",
      [
        {name:"樱桃",value:"22"},
        {name:"李子",value:"24"},
        {name:"柚",value:"25"},
        {name:"桃子",value:"28"},
        {name:"桃（罐头，含有果汁）",value:"30"},
        {name:"香蕉（生）",value:"30"},
        {name:"杏干",value:"31"},
        {name:"梨",value:"36"},
        {name:"苹果",value:"36"},
        {name:"草莓",value:"40"},
        {name:"枣",value:"42"},
        {name:"葡萄",value:"43"},
        {name:"橘子",value:"43"},
        {name:"橙子",value:"43"},
        {name:"草莓酱",value:"49"},
        {name:"猕猴桃",value:"52"},
        {name:"桃（罐头,含糖浓度低）",value:"52"},
        {name:"香蕉",value:"52"},
        {name:"芭蕉",value:"53"},
        {name:"芒果",value:"55"},
        {name:"葡萄（淡黄色，小，无核）",value:"56"},
        {name:"桃（罐头，含糖浓度高）",value:"58"},
        {name:"巴婆果",value:"58"},
        {name:"木瓜",value:"59"},
        {name:"杏（罐头，含淡果汁味）",value:"64"},
        {name:"葡萄干",value:"64"},
        {name:"菠萝",value:"66"},
        {name:"哈密瓜",value:"70"},
        {name:"西瓜",value:"72"},
      ],
      //"种子类",
      [
        {name:"花生",value:"14"},
        {name:"腰果",value:"25"},
      ],
      //"乳类及制品",
      [
        {name:"低脂奶粉",value:"11.9"},
        {name:"酸乳酪（低脂，加人工甜味剂）",value:"14"},
        {name:"牛奶（加人工甜味剂和巧克力）",value:"24"},
        {name:"降糖牛奶",value:"26"},
        {name:"全脂牛奶",value:"27"},
        {name:"牛奶",value:"27.6"},
        {name:"脱脂牛奶",value:"32"},
        {name:"酸乳酪（低脂）",value:"33"},
        {name:"牛奶（加糖和巧克力）",value:"34"},
        {name:"酸乳酪",value:"36"},
        {name:"老年奶粉",value:"40.9"},
        {name:"酸奶（水果）",value:"41"},
        {name:"克糖奶粉",value:"47.6"},
        {name:"酸奶（加糖）",value:"48"},

      ],
      //"糖类",
      [
        {name:"果糖",value:"23"},
        {name:"乳糖",value:"46"},
        {name:"巧克力",value:"49"},
        {name:"蔗糖",value:"65"},
        {name:"蜂蜜",value:"73"},
        {name:"胶质软糖",value:"80"},
        {name:"绵细糖",value:"84"},
        {name:"葡萄糖",value:"100"},
        {name:"麦芽糖",value:"105"},

      ],
      //"速食食品类",
      [
        {name:"面包（75-80%大麦粒）",value:"34"},
        {name:"牛奶香脆",value:"39"},
        {name:"全麦维（家乐氏）",value:"42"},
        {name:"面包（混合物）",value:"45"},
        {name:"大米（即食，煮1分钟）",value:"46"},
        {name:"面包（黑麦粒）",value:"46"},
        {name:"面包（小麦粉，含水果干）",value:"47"},
        {name:"面包（45-50%燕麦麸）",value:"47"},
        {name:"闲趣饼干",value:"47"},
        {name:"面包（80%燕麦粒）",value:"50"},
        {name:"面包（50-80%碎小麦粒）",value:"52"},
        {name:"荞麦方便面",value:"53.2"},
        {name:"爆玉米花",value:"55"},
        {name:"燕麦粗粉饼干",value:"55"},
        {name:"高纤维黑麦薄脆饼",value:"55"},
        {name:"酥皮高点",value:"59"},
        {name:"比萨饼（含乳酪）",value:"60"},
        {name:"马铃薯片（油炸）",value:"60.3"},
        {name:"汉堡包",value:"61"},
        {name:"面包（粗面粉）",value:"64"},
        {name:"油酥脆饼干",value:"64"},
        {name:"面包（黑麦粉）",value:"65"},
        {name:"小麦饼干",value:"65"},
        {name:"营养饼",value:"65.7"},
        {name:"面包（80-100%大麦粉）",value:"66"},
        {name:"竹芋粉饼干",value:"66"},
        {name:"新月形面包",value:"67"},
        {name:"面包（小麦粉，高纤维）",value:"68"},
        {name:"小麦片",value:"69"},
        {name:"面包（全麦粉）",value:"69"},
        {name:"即食羹",value:"69.4"},
        {name:"面包（小麦粉，去面筋）",value:"70"},
        {name:"苏打饼干",value:"72"},
        {name:"格雷厄姆华饼干",value:"74"},
        {name:"华夫饼干",value:"76"},
        {name:"可可米（家乐氏）",value:"77"},
        {name:"香草华夫饼干",value:"77"},
        {name:"膨化薄脆饼干",value:"81"},
        {name:"风味燕麦",value:"83"},
        {name:"大米（即食，煮6分钟）",value:"87"},
        {name:"白面包",value:"87.9"},
        {name:"卜卜米（家乐氏）",value:"88"},
        {name:"棍子面包",value:"90"},
      ],
      //"饮料",
      [
        {name:"水蜜桃汁",value:"32.7"},
        {name:"可乐饮料",value:"40.3"},
        {name:"苹果汁",value:"41"},
        {name:"巴梨汁（罐头）",value:"44"},
        {name:"菠萝汁（不加糖）",value:"46"},
        {name:"柚子果汁（不加糖）",value:"48"},
        {name:"橙汁（纯果汁）",value:"50"},
        {name:"冰激凌（低脂）",value:"50"},
        {name:"橘子汁",value:"57"},
        {name:"冰激凌",value:"64"},
        {name:"啤酒",value:"66"},
        {name:"芬达软饮料",value:"68"},
      ],
      //"其他类",
      [
        {name:"猪肉炖粉条",value:"16.7"},
        {name:"三鲜馅饺子",value:"28"},
        {name:"米饭+鱼",value:"37"},
        {name:"西红柿汤",value:"38"},
        {name:"硬质小麦粉肉馅馄饨",value:"39"},
        {name:"包子/芹菜炒猪肉",value:"39.1"},
        {name:"牛奶蛋糊/牛奶+淀粉+糖",value:"43"},
        {name:"饼+鸡蛋炒木耳",value:"48.4"},
        {name:"馒头+芹菜炒鸡蛋",value:"48.6"},
        {name:"馒头+酱牛肉",value:"49.4"},
        {name:"米饭+芹菜炒猪肉",value:"57.1"},
        {name:"米饭+炒蒜苗",value:"57.9"},
        {name:"黑五类粉",value:"57.9"},
        {name:"二合面窝窝头/玉米面+面粉",value:"64.9"},
        {name:"馒头+黄油",value:"68"},
        {name:"米饭+蒜苗炒鸡蛋",value:"68"},
        {name:"玉米粉加入人造黄油/煮",value:"69"},
        {name:"米饭+红烧猪肉",value:"73.3"},
        {name:"扬州炒饭",value:"80"},
        {name:"牛肉面",value:"88.6"},
      ],
    ],
  },
  inputChange(e){
    let inputValue=e.detail.value;
    if (inputValue!="") {
      this.setData({
        delShow:true
      })
    }else{
      this.setData({
        delShow:false
      })
    }
    this.setData({
      inputValue
    })
  },
  delInputValue(){
    this.setData({
      inputValue:"",
      delShow:false
    })
  },
  search(){
    let {inputValue,rightData}=this.data;
    let goIndex="";
    let searchVal=inputValue;
    rightData.forEach((ele,index)=> {
      ele.forEach(item=>{
        if (item.name.indexOf(inputValue)!=-1) {
            goIndex=index;
        } 
      })
    });
    if(goIndex){
      wx.navigateTo({
        url: `../foodGiDetail/foodGiDetail?leftIndex=${goIndex}&searchVal=${searchVal}`,
      })
    }else{
      wx.showToast({
        icon:"none",
        title: '没有找到对应的食物!',
      })
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})